package cn.hj.org.domain;

import cn.hj.basic.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * t_department
 * @author 
 */
@Data
public class Department extends BaseDomain{
    /**
     * 部门编号
     */
    private String sn;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 部门的上级分类层级id
     */
    @ApiModelProperty
    private String dirPath;

    /**
     * 部门状态，0正常，1禁用
     */
    private Integer state;

    /**
     * 部门管理员，关联Employee表id
     */
    private Long managerId;
    private Employee employee;

    /**
     * 上级部门
     */
    private Long parentId;
    private Department department;

    private List<Department> children;

}